import http from "./rquest"


//登录
export  const Login=(params)=>http.post("/api/login",params)

//删除
export const Delete=(params)=>http.post("/api/layout/sys-staff1/delete",params)

//新增
export const addUser=(params)=>http.post("/api/layout/sys-staff1/add",params)

//注册||添加用户  携带参数 username,password,email,phone,avatar
export const add_reg =(params)=>http.post("/api/reg")

//layout 
export const layout=()=>http.get("/api/layout")


//员工表
export const userData=()=>http.get("/api/layout/sys-staff1")

//轮播图数据
export const bannerData=()=>http.get("/api/layout/sys-goods1")

//众筹商品数据
export const jingxuanData=()=>http.get("/api/layout/sys-goods2")

//上新精选
export const newsData=()=>http.get("/api/layout/sys-goods3")

//秒杀商品
export const youpinData=()=>http.get("/api/layout/sys-goods4")

